﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="ChucNang.aspx.cs" Inherits="Admin_HeThong_ChucNang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
 <div class="col-xs-12">
     <div class="panel panel-primary">
         <div class="panel-heading">
             <h4>
                 THUỘC TÍNH TRANG
             </h4>
         </div>
         <div class="panel-body">
             <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                 <ContentTemplate>
                        <asp:GridView ID="tableChucNang" runat="server" AutoGenerateColumns="False" CssClass="table table-bordered table-hover"
                            Width="100%" AllowPaging="True" BackColor="White" BorderColor="#336666" BorderStyle="Double"
                            BorderWidth="3px" CellPadding="4" GridLines="Horizontal" OnPageIndexChanging="grvbangGiaCan_PageIndexChanging"
                            ClientIDMode="Static" ShowHeaderWhenEmpty="True" ShowFooter="True">
                            <Columns>
                                <asp:TemplateField HeaderText="STT">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <%#Container.DataItemIndex+1 %>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="vPageCode" HeaderText="Mã trang">
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle HorizontalAlign="Left" Width="100px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="vTitle" HeaderText="Tên Trang">
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle HorizontalAlign="Left" Width="200px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="vpageName" HeaderText="Trang gốc">
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle Width="220px" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="Options">
                                    <HeaderTemplate>
                                        <button type="button" class="btn btn-default btnAdd pull-right">
                                            <i class="glyphicon glyphicon-plus"></i>
                                        </button>
                                        &nbsp;
                                        <button type="button" class="btn btn-default btnSearch">
                                            <i class="glyphicon glyphicon-search"></i>
                                        </button>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <button type="button" imlsb='<%#Eval("vPageCode") %>' class="btn btn-default btnDelete pull-right">
                                            <i class="glyphicon glyphicon-trash"></i>
                                        </button>
                                        &nbsp;
                                        <button type="button" imlsb='<%#Eval("vPageCode") %>' class="btn btn-default btnEdit">
                                            <i class="glyphicon glyphicon-pencil"></i>
                                        </button>
                                    </ItemTemplate>
                                    <ItemStyle Width="110px" HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle CssClass="Grid-Pagination" />
                            <FooterStyle BackColor="White" ForeColor="#333333" />
                            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="White" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#F7F7F7" />
                            <SortedAscendingHeaderStyle BackColor="#487575" />
                            <SortedDescendingCellStyle BackColor="#E5E5E5" />
                            <SortedDescendingHeaderStyle BackColor="#275353" />
                        </asp:GridView>
                        <asp:Button ID="btnReload" runat="server" Text="Button" ClientIDMode="Static" CssClass="hidebutton"
                            OnClick="btnReload_Click" />
                 </ContentTemplate>
             </asp:UpdatePanel>
         </div>
     </div>
 </div>
</asp:Content>

